@import '../../var';
@import '../../common.scss';
page {
    background-color: $bgcolor-gray;
}

.container {
    position: relative;
    width: 100%;
    padding-top: 138rpx;
}

.navBox {
    position: fixed;
    z-index: 99;
    width: 100%;
    background-color: #fff;
}

.searchBox {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 30rpx 10rpx;
    .searchInput {
        display: flex;
        align-items: center;
        width: 611rpx;
        height: 64rpx;
        background: rgba(247, 247, 247, 1);
        border-radius: 12rpx;
        .searchImgBox {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 54rpx;
            height: 54rpx;
            image {
                width: 26rpx;
                height: 29rpx;
                margin: 0 10rpx 0 20rpx;
            }
        }
        input {
            width: 100%;
        }
    }
    text {
        width: 75rpx;
        margin-left: 10rpx;
        color: $primary-color;
        font-size: 28rpx;
        text-align: center;
    }
}

.nav {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 64rpx;
    // padding: 0 30rpx;
    white-space: nowrap;
}

.nav-item {
    display: inline-block;
    height: 64rpx;
    // margin-right: 20rpx;
    color: $info-color;
    padding: 0 10rpx 0 30rpx;
    font-size: 30rpx;
    font-weight: 600;
    line-height: 64rpx;
    text-align: center;
}

.nav-item.active {
    color: $title-color;
    // border-bottom: 4rpx solid $primary-color;
}

.topic-item {
    width: 210rpx;
}

.user {
    display: flex;
    align-items: center;
    padding: 30rpx 20rpx;
    background-color: #fff;
    border-top: 1px solid #e4e5e5;
    .avatar {
        width: 75rpx;
        height: 75rpx;
        border-radius: 100rpx;
    }
    .intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 450rpx;
        margin-left: 20rpx;
        .name {
            color: $title-color;
            font-weight: 500;
            font-size: 28rpx;
        }
        .bio {
            width: 100%;
            color: #aaa;
            font-size: 24rpx;
        }
    }
    .action {
        width: 125rpx;
        height: 45rpx;
        margin-left: 20rpx;
        button {
            width: 100%;
            height: 100%;
            padding: 0 10rpx;
            color: $info-color;
            font-size: 24rpx;
            line-height: 44rpx;
            background: transparent;
            border: 1px solid rgba(153, 153, 153, 1);
            border-radius: 44rpx;
            &.not-following {
                display: flex;
                align-items: center;
                justify-content: center;
                color: #000;
                border: 1px solid $primary-color;
            }
        }
    }
}

.productBox {
    padding: 0 30rpx;
}

.productList {
    display: inline-block;
    width: 330rpx;
    margin-bottom: 20rpx;
    overflow: hidden;
    background: rgba(255, 255, 255, 1);
    border-radius: 20rpx;
    &.border {
        height: 524rpx;
        border: 1rpx solid $border-color;
    }
}

.productList:nth-child(2n) {
    margin-left: 28rpx;
}

.tab-content-box {
    width: 100%;
    background-color: #fff;
    padding-top: 16rpx;
    .knowledge {
        display: inline-block;
        width: 330rpx;
        margin-bottom: 16rpx;
        margin-top: 16rpx;
        margin-left: 31rpx;
        overflow: hidden;
        background: rgba(255, 255, 255, 1);
        border-radius: 10rpx;
        &.border {
            height: 524rpx;
            border: 1rpx solid $border-color;
        }
    }
}

.defultImg {
    display: block;
    margin: 320rpx auto 0;
    width: 400rpx;
    height: 400rpx;
    text-align: center;
}

.themeContainer {
    position: relative;
    width: 100%;
    padding-top: 20rpx;
}

.themeList {
    width: 690rpx;
    margin: 0rpx 30rpx 30rpx;
    padding: 35rpx 30rpx;
    background-color: #fff;
    border-radius: 16rpx;
    .themeTitle {
        display: flex;
        flex: 1;
        align-items: center;
        font-weight: 600;
        font-size: 30rpx;
        .titleImg {
            position: relative;
            display: flex;
            justify-content: center;
            width: 70rpx;
            height: 34rpx;
            image {
                width: 100%;
                height: 100%;
            }
            text {
                position: absolute;
                color: #fff;
                font-weight: 500;
                font-size: 20rpx;
            }
        }
        .title {
            max-width: 400rpx;
            margin-left: 12rpx;
        }
    }
    .themContentBox {
        display: flex;
        flex: 1;
        max-height: 70rpx;
        margin-top: 10rpx;
        font-size: 24rpx;
        .themContent {
            flex: 1;
            color: $info-color;
            line-height: 1.5 !important;
            margin-right: 50rpx;
            .themeuser {
                display: flex;
                display: inline-block;
                align-items: center;
                margin-right: 15rpx;
                color: $title-color;
                image {
                    width: 32rpx;
                    height: 32rpx;
                    margin-right: 10rpx;
                    border-radius: 50%;
                    position: relative;
                    bottom: -5rpx;
                }
            }
        }
        .themImg {
            width: 60rpx;
            height: 60rpx;
            background-color: $img-color;
            image {
                width: 100%;
                height: 100%;
            }
        }
    }
}